package com.topisv.tms.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.fasterxml.jackson.annotation.JsonFormat;
/**
 * 备货任务表
 * @author Administrator
 *
 */
@Entity
@Table(name = "backup_task")
public class BackupTask extends IdEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
    private String warehouseCode;//商家仓库编码
    @Transient
    public int getBoxQty() {
		return boxQty;
	}
	public void setBoxQty(int boxQty) {
		this.boxQty = boxQty;
	}
	private int boxQty;
	
	public String getWarehouseCode() {
		return warehouseCode;
	}
	public void setWarehouseCode(String warehouseCode) {
		this.warehouseCode = warehouseCode;
	}
	private String batchType;
	@Column(name="batch_type")
	public String getBatchType() {
		return batchType;
	}
	public void setBatchType(String batchType) {
		this.batchType = batchType;
	}
	private String customerCode;//客户编码
	@Column(name="customer_code")
	public String getCustomerCode() {
		return customerCode;
	}
	public void setCustomerCode(String customerCode) {
		this.customerCode = customerCode;
	}
	private String areaGroupCode;//网点编码
	@Column(name="area_group_code")
	public String getAreaGroupCode() {
		return areaGroupCode;
	}
	public void setAreaGroupCode(String areaGroupCode) {
		this.areaGroupCode = areaGroupCode;
	}
	
	private String areaGroupName;//网点名称
	@Transient
	public String getAreaGroupName() {
		return areaGroupName;
	}
	public void setAreaGroupName(String areaGroupName) {
		this.areaGroupName = areaGroupName;
	}
	private String backupTaskCode;// varchar(20) NOT NULL COMMENT '备货任务编号',
	private String  jobuuid ;//;//varchar(64) NOT NULL COMMENT '操作人id号',
	private String  type;// varchar(2046) DEFAULT NULL COMMENT '任务类型 单件single 多件 ',
	private String status;// varchar(30) NOT NULL COMMENT '状态：可选值:已经处理finish、未处理pending',拣货完并且装箱完成(finish)
	private Date  createDate;//;// date DEFAULT NULL COMMENT '备货时间',  
	private Date  updateDate;// date DEFAULT NULL COMMENT '处理时间',
	private String batchCode;//出库批次编号
	
	private String  date ;//varchar(50) DEFAULT NULL COMMENT '订单时间区间',
	private int  ordenoQty ;//int(8) DEFAULT 0 COMMENT '订单数量',  
	private int  skuQty ;//int(8) DEFAULT 0 COMMENT '商品数量',  
	private int  skuType;// int(8) DEFAULT 0 COMMENT '商品种类',
	private String batchTaskCode;// varchar(20) NOT NULL COMMENT '批次任务编号',
	private String pickStatus;//拣货状态，拣货完成(finish)
	
	private int pickQty;//已经拣货的商品数量
	
	private String pickType;//拣货类型 pickBox(边拣边装箱) picking(先拣货再装箱)
	public String getPickType() {
		return pickType;
	}
	public void setPickType(String pickType) {
		this.pickType = pickType;
	}
	public int getPickQty() {
		return pickQty;
	}
	public void setPickQty(int pickQty) {
		this.pickQty = pickQty;
	}
	@Column(name="pick_status")
	public String getPickStatus() {
		return pickStatus;
	}
	public void setPickStatus(String pickStatus) {
		this.pickStatus = pickStatus;
	}
	@Column(name="batch_task_code")
	public String getBatchTaskCode() {
		return batchTaskCode;
	}
	public void setBatchTaskCode(String batchTaskCode) {
		this.batchTaskCode = batchTaskCode;
	}
	private String username;
	@Column(name="user_name")
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public String getDate() {
		return date;
	}
	public void setDate(String date) {
		this.date = date;
	}
	@Column(name="ordeno_qty")
	public int getOrdenoQty() {
		return ordenoQty;
	}
	public void setOrdenoQty(int ordenoQty) {
		this.ordenoQty = ordenoQty;
	}
	@Column(name="sku_qty")
	public int getSkuQty() {
		return skuQty;
	}
	public void setSkuQty(int skuQty) {
		this.skuQty = skuQty;
	}
	@Column(name="sku_type")
	public int getSkuType() {
		return skuType;
	}
	public void setSkuType(int skuType) {
		this.skuType = skuType;
	}
	@Column(name="batch_code")
	public String getBatchCode() {
		return batchCode;
	}
	public void setBatchCode(String batchCode) {
		this.batchCode = batchCode;
	}
	@Column(name="backup_task_code")
	public String getBackupTaskCode() {
		return backupTaskCode;
	}
	public void setBackupTaskCode(String backupTaskCode) {
		this.backupTaskCode = backupTaskCode;
	}
	public String getJobuuid() {
		return jobuuid;
	}
	
	public void setJobuuid(String jobuuid) {
		this.jobuuid = jobuuid;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	@Column(name="create_date")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+08:00")
	public Date getCreateDate() {
		return createDate;
	}
	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}
	@Column(name="update_date")
	public Date getUpdateDate() {
		return updateDate;
	}
	public void setUpdateDate(Date updateDate) {
		this.updateDate = updateDate;
	}
}
